package com.azzcs;

import com.azzcs.coyote.Request;
import com.azzcs.coyote.Response;

/**
 * @Author: wzg
 * @Date: 2021/1/10 上午7:13
 */
public class Servlet {

    public void service(Request req, Response resp){
        if("get".equalsIgnoreCase(req.getMethod())){
           doGet(req,resp);
        }else {
            doPost(req,resp);
        }
    }
    protected void doGet(Request req, Response resp){
        throw new RuntimeException("不支持");
    }

    protected void doPost(Request req, Response resp){
        throw new RuntimeException("不支持");
    }
}
